﻿@model FanPagesWeb.Models.UploadImageModel
@{
    ViewBag.Title = "Upload Image";
}
<h2>
    UploadImage</h2>
@using (Html.BeginForm("UploadImage", "FanItem", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <div id="upload-choices">
        <div class="editor-row">
            <div class="editor-field">                
                @Html.FileFor(model => model.File)
                @Html.ValidationMessageFor(model => model.File)
            </div>
        </div>
        <div class="editor-row">
            @Html.ValidationSummary(true)
        </div>
    </div>
    <div class="clear">
        <button type="submit">
            Upload</button>
    </div>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
